package com.huawei.appgallery.dynamiccore.service;

import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.os.IBinder;
import com.huawei.appgallery.dynamiccore.receiver.StartupReceiver;
import o.bpv;
import o.ll;

public class DynamicCoreService extends Service {
    private BroadcastReceiver ˋ;

    public IBinder onBind(Intent intent) {
        return new bpv(this);
    }

    public void onCreate() {
        super.onCreate();
        ˋ();
    }

    public void onDestroy() {
        super.onDestroy();
        ˏ();
    }

    private void ˋ() {
        if (this.ˋ == null) {
            this.ˋ = new StartupReceiver();
            ll.ˏ(this).ˏ(this.ˋ, StartupReceiver.getIntentFilter());
        }
    }

    private void ˏ() {
        if (this.ˋ != null) {
            ll.ˏ(this).ˋ(this.ˋ);
        }
    }
}
